﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Vehicle.BLL
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：Base_BLL.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-08-26    Created by 杨光远 V1.00.0000
    /// 功能说明：逻辑通用层基类（可让其他类之间继承通用方法）
    /// 注意事项：无
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public class Base_BLL:IBase_BLL
    {
        private static readonly Vehicle.Interface.IBase_DAL d_Base_DAL = Vehicle.Interface.Factory.CreateBase_DAL();
        /// <summary>
        /// 通用删除方法
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        public  void Delete(Model.ComponentsInfo m_Components)
        {
            d_Base_DAL.Delete(m_Components);
        }
        /// <summary>
        /// 通用获得所有统计
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        public  int GetAllCount(Model.ComponentsInfo m_Components)
        {
            return d_Base_DAL.GetAllCount(m_Components);
        }
        /// <summary>
        /// 通用通过标题或时间获得所有统计
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        public  int GetAllSearchCount(Model.ComponentsInfo m_Components)
        {
            return d_Base_DAL.GetAllSearchCount(m_Components);
        }
        /// <summary>
        /// 通用获得所有数据
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        public  DataTable GetModel(Model.ComponentsInfo m_Components)
        {
            return d_Base_DAL.GetModel(m_Components);
        }

        /// <summary>
        /// 通用通过标题或时间获得分页数据
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        public  DataTable GetAllSearch(Model.ComponentsInfo m_Components)
        {
            return d_Base_DAL.GetAllSearch(m_Components);
        }
        /// <summary>
        /// 通用更新只能更新一个值
        /// </summary>
        /// <param name="m_Components">通用实体层</param>
        public  void AllUpdate(Model.ComponentsInfo m_Components)
        {
            d_Base_DAL.AllUpdate(m_Components);
        }
    }
}
